Interchange first and last element in a list in python

join shbcf.ru